<?php
    include "admin_order.php";

    $id=$_REQUEST['id'];
    $startdate=$_REQUEST['startdate'];
    
    $alltotalPrice=$_REQUEST['alltotalPrice'];
// var_dump($id);

mysqli_select_db($conn,"shopping");

$sql = "update orders set `condition` = '待发货',`startdate` = '$startdate',`alltotalPrice` = '$alltotalPrice' where id='$id'";  //SQL模板

   $result=mysqli_query($conn,$sql);
     

    if (!$result){
        echo '订单更新失败！';
    }else{
        echo '订单更新成功！';
    }
    
    mysqli_close($conn);
?>
